// 判断是不是数组
export const isArray = arr => Array.isArray(arr);

// 判断是不是函数
export const isFunction = func => typeof func === 'function';

// 判断是不是字符串
export const isString = str => typeof str === 'string';

// 判断是不是Object
export const isObject = (value) => {
  const type = typeof value
  return value !== null && (type === "object" || type === "function")
}

// 判断是不是Null
export const isNull = value => value === null;
